package File;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class FileInputStreamTest {
	public static void main(String args[]) throws IOException{
	FileInputStream fis=new FileInputStream("D:/home/test.txt");
	FileOutputStream fos=new FileOutputStream("D:/home2/test.txt");
	long start =System.currentTimeMillis();
	int b=0;
	byte [] buf=new byte[1024];
	while((b=fis.read(buf))!=-1){
		fos.write(buf,0,b);
	}
	fos.close();
	fis.close();
	
	
	long end=System.currentTimeMillis();
	
}
}